package com.lovo.dimao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品库存表
 * </p>
 *
 * @author MaoYue
 * @since 2022年11月15日
 */
@Getter
@Setter
@TableName("ssc_product_stock")
@ApiModel(value = "SscProductStock对象", description = "商品库存表")
public class SscProductStock implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品库存id")
    @TableId(value = "pk_product_stock_id", type = IdType.ASSIGN_ID)
    private Long productStockId;

    @ApiModelProperty("商品id")
    @TableField("fk_product_id")
    private Long productId;

    @ApiModelProperty("商品库存数量")
    @TableField("product_stock")
    private Integer productStock;

    @ApiModelProperty("商品序列号")
    @TableField("goods_index")
    private String goodsIndex;

    @ApiModelProperty("商品加权平均成本")
    @TableField("product_cost")
    private Integer productCost;

    @ApiModelProperty("采购阈值")
    @TableField("product_safey")
    private Integer productSafey;

    @ApiModelProperty("商品批次号")
    @TableField("product_bulk")
    private Long productBulk;


}
